<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>  
<%  
String path = request.getContextPath();  
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";  
%>  
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">  
<html>  
  <head>  
  	  <title>Struts下载文件</title>  
  </head>  
  <body>  
    <h2>文件下载内容：</h2><br/>  
    1.jpg:<a href="download.action?fileName=1.jpg">点击下载</a><br/>  
    2.jpg:<a href="download.action?fileName=2.jpg">点击下载2</a><br/>  
       中文1.jpg:<a href="download.action?fileName=中文1.jpg">点击下载中文1.jpg</a><br/>    
       中文2.jpg:<a href="download.action?fileName=中文2.jpg">点击下载中文2.jpg</a><br/>    
  </body>  
</html>  